Optimal. Leaf size=54 \[ \frac{c \log \left (c+d x^n\right )}{d n (b c-a d)}-\frac{a \log \left (a+b x^n\right )}{b n (b c-a d)} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.162708, antiderivative size = 54, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.077 \[ \frac{c \log \left (c+d x^n\right )}{d n (b c-a d)}-\frac{a \log \left (a+b x^n\right )}{b n (b c-a d)} \]
Antiderivative was successfully verified.
[In] Int[x^(-1 + 2*n)/((a + b*x^n)*(c + d*x^n)),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 20.8847, size = 39, normalized size = 0.72 \[ \frac{a \log{\left (a + b x^{n} \right )}}{b n \left (a d - b c\right )} - \frac{c \log{\left (c + d x^{n} \right )}}{d n \left (a d - b c\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(x**(-1+2*n)/(a+b*x**n)/(c+d*x**n),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0851206, size = 44, normalized size = 0.81 \[ -\frac{a d \log \left (a+b x^n\right )-b c \log \left (c+d x^n\right )}{b^2 c d n-a b d^2 n} \]
Antiderivative was successfully verified.
[In] Integrate[x^(-1 + 2*n)/((a + b*x^n)*(c + d*x^n)),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.033, size = 59, normalized size = 1.1 \[{\frac{a\ln \left ( a+b{{\rm e}^{n\ln \left ( x \right ) }} \right ) }{ \left ( ad-bc \right ) bn}}-{\frac{c\ln \left ( c+d{{\rm e}^{n\ln \left ( x \right ) }} \right ) }{dn \left ( ad-bc \right ) }} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(x^(-1+2*n)/(a+b*x^n)/(c+d*x^n),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.38846, size = 81, normalized size = 1.5 \[ -\frac{a \log \left (\frac{b x^{n} + a}{b}\right )}{b^{2} c n - a b d n} + \frac{c \log \left (\frac{d x^{n} + c}{d}\right )}{b c d n - a d^{2} n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x^(2*n - 1)/((b*x^n + a)*(d*x^n + c)),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.235242, size = 61, normalized size = 1.13 \[ -\frac{a d \log \left (b x^{n} + a\right ) - b c \log \left (d x^{n} + c\right )}{{\left (b^{2} c d - a b d^{2}\right )} n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x^(2*n - 1)/((b*x^n + a)*(d*x^n + c)),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x**(-1+2*n)/(a+b*x**n)/(c+d*x**n),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{x^{2 \, n - 1}}{{\left (b x^{n} + a\right )}{\left (d x^{n} + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x^(2*n - 1)/((b*x^n + a)*(d*x^n + c)),x, algorithm="giac")
[Out]